package com.ganmiao.server.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ganmiao.entity.BaseColumns;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 角色菜单信息
 *
 * @TableName sys_role_menu
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("角色菜单信息")
@TableName(value = "sys_role_menu")
public class SysRoleMenu extends BaseColumns implements Serializable {

    /**
     * 角色菜单主键ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("角色菜单主键ID")
    private Integer roleMenuId;

    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    private Integer roleId;

    /**
     * 菜单ID
     */
    @ApiModelProperty("菜单ID")
    private Integer menuId;

    /**
     * 菜单列表(0:pc 1:h5)
     */
    @ApiModelProperty("菜单列表(0:pc 1:h5)")
    private String menuList;

    /**
     * 状态 (1:正常 9:删除/失效)
     */
    @ApiModelProperty("状态 (1:正常 9:删除/失效)")
    private String status;

}